package com.example.utils.File;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

public class PdfUtil {

    public static List<Map> TitleList = new ArrayList<>();

    /**
     * 读取目录标题
     * @param bookmark
     */
    public void showBookmark ( Map bookmark ) {
        ArrayList kids = (ArrayList) bookmark.get("Kids");

        if (kids == null){
            return;
        }else TitleList.add(bookmark);
        for ( Iterator i = kids.iterator () ; i.hasNext () ; ) {
            showBookmark (( Map ) i.next ()) ;
        }
    }



}
